<!DOCTYPE html>
<html xmlns:th="http://www.thymeleaf.org">
<head>
    <title>TF（腾飞）开源】SpringBoot2.x之MultipartFile实现多文件上传</title>
    <meta charset="utf-8"/>
    <meta http-equiv="X-UA-Compatible" content="IE=edge"/>
    <meta name="viewport" content="width=device-width,initial-scale=1,user-scalable=no"/>
</head>

<body>
<div>
    <div><img src="./images/wxtfos.png" width="500"/></div>
    <div>
        <div>
            <h3>批量上传文件</h3>
        </div>
        <div>
            <form  method="post" enctype="multipart/form-data" th:action="@{/uploadMultifile}">
                <div>
                    <label for="attachment1">文件上传: </label>
                    <div>
                        <input type="file"  name="attachment" id="attachment1" placeholder="请选择邮件附件"/>
                    </div>
                </div>
                <div>
                    <label for="attachment2">文件上传: </label>
                    <div class="col-sm-5">
                        <input type="file"  name="attachment" id="attachment2" placeholder="请选择邮件附件"/>
                    </div>
                </div>
                <div>
                    <label for="attachment3">文件上传: </label>
                    <div>
                        <input type="file" name="attachment" id="attachment3" placeholder="请选择邮件附件"/>
                    </div>
                </div>
                <div><tr>&nbsp;</tr></div>
                <div>
                    <div>
                        <button type="submit">上&nbsp;传</button>
                    </div>
                </div>
                <div><tr>&nbsp;</tr></div>
            </form>
        </div>
        <div>
            <tr>已上传图片所在路径：</tr>
            <tr th:text="${msg}">显示图片URL</tr>
        </div>
    </div>
</div>
</body>

</html>